package thread.waitandnotify;

/**
 * @author liweimin
 * @date 2021/4/30 14:29
 * @since
 */
public class Test {
    public static void main(String[] args) {
        String s = "123";

        try {
            s.wait();//必须在同步代码块里面
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
